package cn.itcast.usermanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;


import cn.itcast.usermanage.pojo.User;

public interface UserMapper {
	
	/**
	 * 根据id查询User
	 * @param id
	 * @return
	 */
	public User queryUserById(Long id);
	
	/**分页查询
	 * @param start
	 * @param pageSize
	 * @return
	 */
	public List<User> queryUsersByPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize);
	
	/**查询所有用户
	 * @return
	 */
	public List<User> queryUserAll();
	
	public int addUser(User user);

	public int deleteUsers(@Param("ids")String[] ids);
}
